﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001B9 RID: 441
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeBossSingleNodeInfo : IMessage<ChallengeBossSingleNodeInfo>, IMessage, IEquatable<ChallengeBossSingleNodeInfo>, IDeepCloneable<ChallengeBossSingleNodeInfo>, IBufferMessage
	{
		// Token: 0x170005D7 RID: 1495
		// (get) Token: 0x060013F9 RID: 5113 RVA: 0x00039469 File Offset: 0x00037669
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeBossSingleNodeInfo> Parser
		{
			get
			{
				return ChallengeBossSingleNodeInfo._parser;
			}
		}

		// Token: 0x170005D8 RID: 1496
		// (get) Token: 0x060013FA RID: 5114 RVA: 0x00039470 File Offset: 0x00037670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeBossSingleNodeInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170005D9 RID: 1497
		// (get) Token: 0x060013FB RID: 5115 RVA: 0x00039482 File Offset: 0x00037682
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeBossSingleNodeInfo.Descriptor;
			}
		}

		// Token: 0x060013FC RID: 5116 RVA: 0x00039489 File Offset: 0x00037689
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossSingleNodeInfo()
		{
		}

		// Token: 0x060013FD RID: 5117 RVA: 0x00039494 File Offset: 0x00037694
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossSingleNodeInfo(ChallengeBossSingleNodeInfo other) : this()
		{
			this.maxScore_ = other.maxScore_;
			this.buffId_ = other.buffId_;
			this.isWin_ = other.isWin_;
			this.nCAJEEFKNHM_ = other.nCAJEEFKNHM_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060013FE RID: 5118 RVA: 0x000394E8 File Offset: 0x000376E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossSingleNodeInfo Clone()
		{
			return new ChallengeBossSingleNodeInfo(this);
		}

		// Token: 0x170005DA RID: 1498
		// (get) Token: 0x060013FF RID: 5119 RVA: 0x000394F0 File Offset: 0x000376F0
		// (set) Token: 0x06001400 RID: 5120 RVA: 0x000394F8 File Offset: 0x000376F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxScore
		{
			get
			{
				return this.maxScore_;
			}
			set
			{
				this.maxScore_ = value;
			}
		}

		// Token: 0x170005DB RID: 1499
		// (get) Token: 0x06001401 RID: 5121 RVA: 0x00039501 File Offset: 0x00037701
		// (set) Token: 0x06001402 RID: 5122 RVA: 0x00039509 File Offset: 0x00037709
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffId
		{
			get
			{
				return this.buffId_;
			}
			set
			{
				this.buffId_ = value;
			}
		}

		// Token: 0x170005DC RID: 1500
		// (get) Token: 0x06001403 RID: 5123 RVA: 0x00039512 File Offset: 0x00037712
		// (set) Token: 0x06001404 RID: 5124 RVA: 0x0003951A File Offset: 0x0003771A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsWin
		{
			get
			{
				return this.isWin_;
			}
			set
			{
				this.isWin_ = value;
			}
		}

		// Token: 0x170005DD RID: 1501
		// (get) Token: 0x06001405 RID: 5125 RVA: 0x00039523 File Offset: 0x00037723
		// (set) Token: 0x06001406 RID: 5126 RVA: 0x0003952B File Offset: 0x0003772B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool NCAJEEFKNHM
		{
			get
			{
				return this.nCAJEEFKNHM_;
			}
			set
			{
				this.nCAJEEFKNHM_ = value;
			}
		}

		// Token: 0x06001407 RID: 5127 RVA: 0x00039534 File Offset: 0x00037734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeBossSingleNodeInfo);
		}

		// Token: 0x06001408 RID: 5128 RVA: 0x00039544 File Offset: 0x00037744
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeBossSingleNodeInfo other)
		{
			return other != null && (other == this || (this.MaxScore == other.MaxScore && this.BuffId == other.BuffId && this.IsWin == other.IsWin && this.NCAJEEFKNHM == other.NCAJEEFKNHM && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001409 RID: 5129 RVA: 0x000395B0 File Offset: 0x000377B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MaxScore != 0U)
			{
				num ^= this.MaxScore.GetHashCode();
			}
			if (this.BuffId != 0U)
			{
				num ^= this.BuffId.GetHashCode();
			}
			if (this.IsWin)
			{
				num ^= this.IsWin.GetHashCode();
			}
			if (this.NCAJEEFKNHM)
			{
				num ^= this.NCAJEEFKNHM.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600140A RID: 5130 RVA: 0x0003963A File Offset: 0x0003783A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600140B RID: 5131 RVA: 0x00039642 File Offset: 0x00037842
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600140C RID: 5132 RVA: 0x0003964C File Offset: 0x0003784C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsWin)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.IsWin);
			}
			if (this.NCAJEEFKNHM)
			{
				output.WriteRawTag(88);
				output.WriteBool(this.NCAJEEFKNHM);
			}
			if (this.BuffId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.BuffId);
			}
			if (this.MaxScore != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.MaxScore);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600140D RID: 5133 RVA: 0x000396E0 File Offset: 0x000378E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MaxScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxScore);
			}
			if (this.BuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffId);
			}
			if (this.IsWin)
			{
				num += 2;
			}
			if (this.NCAJEEFKNHM)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600140E RID: 5134 RVA: 0x00039750 File Offset: 0x00037950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeBossSingleNodeInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MaxScore != 0U)
			{
				this.MaxScore = other.MaxScore;
			}
			if (other.BuffId != 0U)
			{
				this.BuffId = other.BuffId;
			}
			if (other.IsWin)
			{
				this.IsWin = other.IsWin;
			}
			if (other.NCAJEEFKNHM)
			{
				this.NCAJEEFKNHM = other.NCAJEEFKNHM;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600140F RID: 5135 RVA: 0x000397C8 File Offset: 0x000379C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001410 RID: 5136 RVA: 0x000397D4 File Offset: 0x000379D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 88U)
				{
					if (num == 48U)
					{
						this.IsWin = input.ReadBool();
						continue;
					}
					if (num == 88U)
					{
						this.NCAJEEFKNHM = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.BuffId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.MaxScore = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400084A RID: 2122
		private static readonly MessageParser<ChallengeBossSingleNodeInfo> _parser = new MessageParser<ChallengeBossSingleNodeInfo>(() => new ChallengeBossSingleNodeInfo());

		// Token: 0x0400084B RID: 2123
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400084C RID: 2124
		public const int MaxScoreFieldNumber = 14;

		// Token: 0x0400084D RID: 2125
		private uint maxScore_;

		// Token: 0x0400084E RID: 2126
		public const int BuffIdFieldNumber = 12;

		// Token: 0x0400084F RID: 2127
		private uint buffId_;

		// Token: 0x04000850 RID: 2128
		public const int IsWinFieldNumber = 6;

		// Token: 0x04000851 RID: 2129
		private bool isWin_;

		// Token: 0x04000852 RID: 2130
		public const int NCAJEEFKNHMFieldNumber = 11;

		// Token: 0x04000853 RID: 2131
		private bool nCAJEEFKNHM_;
	}
}
